From: Florian Müllner Date: Wed, 12 Jul 2023 19:32:56 +0000 (+0200) Subject: lookingGlass: Reformat command header X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~337^2~1^2~148 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=85a8a6f46c3c84334c5c43c603d68fd7172a3dfa;p=gnome-shell.git lookingGlass: Reformat command header Part-of: --- diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index fd19e713e..ac618200c 100644 --- a/js/ui/lookingGlass.js +++ b/js/ui/lookingGlass.js @@ -26,15 +26,19 @@ const { ExtensionState } = ExtensionUtils; const CHEVRON = '>>> '; /* Imports...feel free to add here as needed */ -var commandHeader = 'const { Clutter, Gio, GLib, GObject, Meta, Shell, St } = imports.gi; ' + - 'const Main = imports.ui.main; ' + - /* Utility functions...we should probably be able to use these - * in the shell core code too. */ - 'const stage = global.stage; ' + - /* Special lookingGlass functions */ - 'const inspect = Main.lookingGlass.inspect.bind(Main.lookingGlass); ' + - 'const it = Main.lookingGlass.getIt(); ' + - 'const r = Main.lookingGlass.getResult.bind(Main.lookingGlass); '; +const commandHeader = ` + const {Clutter, Gio, GLib, GObject, Meta, Shell, St} = imports.gi; + const Main = imports.ui.main; + + /* Utility functions...we should probably be able to use these + * in the shell core code too. */ + const stage = global.stage; + + /* Special lookingGlass functions */ + const inspect = Main.lookingGlass.inspect.bind(Main.lookingGlass); + const it = Main.lookingGlass.getIt(); + const r = Main.lookingGlass.getResult.bind(Main.lookingGlass); + `; const HISTORY_KEY = 'looking-glass-history'; // Time between tabs for them to count as a double-tab event